//
//  EMMApiUtils.h
//  EMMApp
//
//  Created by Mac on 16/5/24.
//  Copyright © 2016年 YiXun. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface EMMApiUtils : NSObject
@property (nonatomic, strong) NSMutableDictionary *params;

@property (nonatomic, strong) NSString *requestUrl;

@property (nonatomic, readonly) NSString *body;

@property (nonatomic, strong) NSString *requestArgument;

@property (nonatomic) NSInteger myCacheTimeInSeconds;

@property (nonatomic, strong) NSDictionary *dict4;

@property (nonatomic, strong) NSDictionary *dict5;

@property (nonatomic, strong) NSDictionary *dict6;

- (instancetype)initWithMethod:(NSString *)method params:(NSMutableDictionary *)params;

- (instancetype)initWithMethod:(NSString *)method params:(NSMutableDictionary *)params cacheTimeInSeconds:(NSInteger)seconds;

+ (NSString *)getRequestUrl:(NSString *)method;

+ (id)respWithSuccess:(NSDictionary *)dict method:(NSString *)method canNewClass:(BOOL)flag;

+ (id)respWithSuccess:(NSDictionary *)dict method:(NSString *)method canNewClass:(BOOL)flag baseKey:(NSString *)baseKey;

@end
